<ion-view id="withdraw-cash-form" view-title="提现"  hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">提现</h1>
  </ion-header-bar>
  <ion-content>
    <div class="line" style="margin-top: 50px;">
      <div class="left" style="background-color:#fac136;">可提金额</div>
      <div class="right">
        <div class="text">{{balance}}<font style="color: #fac136;">元</font></div>
      </div>
    </div>
    <div class="line" style="margin-bottom: 30px;">
      <div class="left" style="background-color:#fac136;">提现金额</div>
      <div class="right">
        <input maxlength="9"
            placeholder="请输入金额"
            ng-change="checkAmount()"
            ng-model="reqData.cashmoney">
      </div>
      <div class="ps"  onchange="">
        提现金额必须为整数,最低100元
      </div>
    </div>
    <div class="type-select">
      <div class="by-card" ng-class="{'checked':cashType=='card'}"
          on-tap="changeType()">银行卡</div>
      <div class="by-alipay" ng-class="{'checked':cashType=='alipay'}"
           on-tap="changeType()">支付宝</div>
    </div>
    <div class="line" ng-if="cashType=='card'">
      <div class="left" style="background-color:#8ce976;">开户行</div>
      <div class="right">
        <input placeholder="请输入开户行" ng-model="reqData.bankname">
      </div>
    </div>
    <div class="line" ng-if="cashType=='card'">
      <div class="left" style="background-color:#8ce976;">卡号</div>
      <div class="right">
        <input placeholder="请输入卡号" ng-model="reqData.bankcard">
      </div>
    </div>
    <div class="line" ng-if="cashType=='card'">
      <div class="left" style="background-color:#979797;">姓名</div>
      <div class="right">
        <input placeholder="请输入姓名" ng-model="reqData.bankuser">
      </div>
    </div>
    <div class="line" ng-if="cashType=='alipay'">
      <div class="left" style="background-color:#8ce976;">账户</div>
      <div class="right">
        <input placeholder="请输入账户"  ng-model="reqData.aliaccount">
      </div>
    </div>
    <div class="btn" on-tap="submit()">
      提交申请
    </div>
  </ion-content>
</ion-view>